// 生成文件切片 size：单个切片大小
export function createFileChunk(file, size = 1024 * 100) {
    const fileChunkList = [];
    let cur = 0;

    while (cur < file.size) {
        fileChunkList.push({ file: file.slice(cur, cur + size) });
        cur += size;
    }
    return fileChunkList;
}